CC = g++
LD = g++
prog = network_test
SRC = \
	acceptor.cpp \
	acceptor.h \
	apriori/apriori.h \
	apriori/itemset.h \
	apriori/itemset_container.h \
	blank_parser/parser.h \
	blank_parser/parser.c \
	blank_parser.cpp \
	blank_parser.h \
	handler/web_acceptor.cpp \
	handler/web_acceptor.h \
	album_send.cpp \
	album_send.h \
	client_send.h \
	client_send.cpp \
	configurator.h \
	connection_listener.cpp \
	connection_listener.h \
	event_handler.h \
	event_worker.cpp \
	event_worker.h \
	generic_queue.h \
	handler.cpp \
	handler.h \
	interpreter_send.cpp \
	interpreter_send.h \
	i_socket.h \
	listener.h \
	multicaster.cpp \
	multicaster.h \
	model_send.h \
	model_send.cpp \
	handler/ic_acceptor.h \
	handler/ic_acceptor.cpp \
	handler/ic_handler.h \
	handler/ic_handler.cpp \
	handler/data_miner.h \
	handler/data_miner.cpp \
	handler/music_handler.cpp \
	handler/music_handler.h \
	handler/file_streamer.h \
	handler/file_streamer.cpp \
	handler/title_adapter.h \
	handler/title_adapter.cpp \
	handler/title_dataset.h \
	handler/title_dataset.cpp \
	light.h \
	light.cpp \
	network.h \
	notifier.cpp \
	notifier.h \
	parse_exception.h \
	parser.h \
	pause.cpp \
	pause.h \
	play.cpp \
	play.h \
	receiver.cpp \
	receiver.h \
	rs_socket.h \
	rs_socket.cpp \
	sendable.h \
	sendable.cpp \
	send_impl.h \
	send_xml_impl.cpp \
	send_xml_impl.h \
	send_blank_impl.h \
	send_blank_impl.cpp \
	singletone.h \
	stop.cpp \
	stop.h \
	tcp_receiver.h \
	tcp_socket.cpp \
	tcp_socket.h \
	test2.cpp \
	thread_container.cpp \
	thread_container.h \
	thread_helper.h \
	temperature.h \
	temperature.cpp \
	title_send.cpp \
	title_send.h \
	tv.h \
	tv.cpp \
	web_handler.cpp \
	web_handler.h \
	worker_thread.cpp \
	worker_thread.h \
	xml_parser.cpp \
	xml_parser.h 
OBJ = \
	acceptor.o \
	blank_parser/parser.o \
	blank_parser.o \
	handler/web_acceptor.o \
	handler/data_miner.o \
	handler/title_adapter.o \
	handler/title_dataset.o \
	album_send.o \
	client_send.o \
	connection_listener.o \
	event_worker.o \
	handler.o \
	interpreter_send.o \
	multicaster.o \
	model_send.o \
	handler/ic_acceptor.o \
	handler/ic_handler.o \
	handler/music_handler.o \
	handler/file_streamer.o \
	light.o \
	notifier.o \
	pause.o \
	play.o \
	receiver.o \
	rs_socket.o \
	sendable.o \
	send_xml_impl.o \
	send_blank_impl.o \
	stop.o \
	tcp_socket.o \
	temperature.o \
	test2.o \
	thread_container.o \
	title_send.o \
	tv.o \
	handler/web_handler.o \
	worker_thread.o \
	xml_parser.o 

LDFLAGS = -Lmodel -Lsocket -lmodel -lboost_thread -lboost_regex -lsocket_cpp -lxml2
CFLAGS = -g -fPIC -DPIC -fvar-tracking  -I/usr/include/libxml2

all: $(prog)

${prog}: $(OBJ)
	$(LD) $(LDFLAGS) $(OBJ) -o $(prog)

%.o: %.cpp
	$(CC) $(CFLAGS) -c $< -o $@

clean:
	rm $(OBJ)
	rm $(prog)

run:
	./$(prog)
